import request from '@/utils/request'

// 查询资产分类列表
export function listBasSort(query) {
  return request({
    url: '/bas/basSort/list',
    method: 'get',
    params: query
  })
}

// 查询资产分类详细
export function getBasSort(sortId) {
  return request({
    url: '/bas/basSort/' + sortId,
    method: 'get'
  })
}

// 新增资产分类
export function addBasSort(data) {
  return request({
    url: '/bas/basSort',
    method: 'post',
    data: data
  })
}

// 修改资产分类
export function updateBasSort(data) {
  return request({
    url: '/bas/basSort',
    method: 'put',
    data: data
  })
}

// 删除资产分类
export function delBasSort(sortId) {
  return request({
    url: '/bas/basSort/' + sortId,
    method: 'delete'
  })
}
